package liangtWorkSpace.springAll.di.annotation.autoWrited;

import liangtWorkSpace.springAll.di.annotation.autoWrited.Impl.StudentImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author liangt
 * @ClassName: AutoWritedMain
 * @title: AutoWritedMain
 * @projectName liangtWorkSpace.springAll.di.annotation.autoWrited
 * @description: 演示AutoWrited注解域Qualifier注解
 * @date 2020/10/16 11:24
 */
public class AutoWritedMain {

    public static void main(String[] args) {
        String xmlPath = "DI/annotation/autoWrited/Beans.xml";
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
        StudentImpl student = (StudentImpl) applicationContext.getBean("profile");
        student.printAge();
        student.printName();

    }
}
